<?php
/**
 * @author Garry
 *
 * This wrapper adds an edit and view link
 */
class ControlImageWrapper extends EditableImageWrapper {
	//TODO - Insert your code here
	protected $imgdat;

	
	/**
	 * last minute addition of controls
	 */
	protected function addControls( ){
		$controls = $this->HtmlElement('div');
		$controls->addAttribute('class', 'controls');
		$title = $this->HtmlElement('span',$this->title,array('id'=>$this->id));
		$control_section = $this->HtmlElement('span',null,array('class'=> 'control_panel'));
		$controls = $controls->addChild($title);
		$controls = $controls->addChild($control_section);
		$this->dat = $this->dat->addChild($controls);
	}
	
}


?>